package com.zx.mobile.service.proxy;

import com.zx.mobile.MobileCommonHelper;
import com.zx.scp.service.model.MessageResponse;
import com.zx.scp.utils.PropertyUtil;

public class MessageSendProxy {

	/**
	 * 短信发送
	 * 
	 * @param messageType
	 * @param telephone
	 * @return
	 */
	public static MessageResponse getMessageResponse(String messageType,
			String telephone) {
		// 传递订单号及订单金额
		StringBuilder requestUrl = new StringBuilder(
				PropertyUtil.getValue("messageSend"));
		requestUrl.append("telephone=").append(telephone).append("&");
		requestUrl.append("messageType=").append(messageType);
		return MobileCommonHelper.httpRequest(MessageResponse.class,
				requestUrl.toString());
	}
}
